package org.sivan.buffly.view;


import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.stage.Stage;

import java.io.IOException;

/**
 * 这个鬼畜播放器的界面类
 */

public class View {
    public View(Stage stage) throws IOException {
        System.out.println("Start");
        try {
            open(stage);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    private void open (Stage stage) throws IOException {
        //这个界面简直直男审美......
        Parent playerWindow = FXMLLoader.load(getClass().getResource("FXML/view.fxml"));
        Scene scene = new Scene(playerWindow, 480, 640);
        //超屌的音译2333333
        stage.setTitle("Buffly");
        stage.setScene(scene);

        stage.setResizable(false);
        stage.show();
    }
}
